//
//  base_thread.h
//  testpcap
//
//  Created by bugforever on 1/10/15.
//  Copyright (c) 2015 bugforever. All rights reserved.
//

#ifndef __base_thread_h
#define __base_thread_h

#include "thread_func.h"

class base_thread
{
public:
    base_thread();
    virtual ~base_thread();
    
    virtual int start_thread();
    virtual void stop_thread();
    
    static unsigned int thread_function_internal( void * ptr_param );
    
    virtual void thread_function() = 0;
    
    bool is_thread_running();
    
protected:
    THREAD_HANDLE m_thread_handle;
    bool m_is_thread_running;
};


#endif /* defined(__testpcap__base_thread__) */
